package com.tongji.housediy.model
{
	import com.tongji.housediy.events.UpdateViewControlEvent;
	
	import org.robotlegs.mvcs.Actor;
	
	/**
	 * 
	 * @author chenchao
	 * 
	 */
	public class ViewControlModel extends Actor
	{
		[Bindable]
		public var dimensionIndex:int;
		public var dimensionValue:int = 5;
		public var tempDimensionValue:int = 5;
		public function ViewControlModel()
		{
			super();
		}
		
		public function updateIndex(event:UpdateViewControlEvent):void
		{
			if (event.type == UpdateViewControlEvent.TWO_DIMENSION_VIEW)
				dimensionIndex = 0;
			else if (event.type == UpdateViewControlEvent.THREE_DIMENSION_VIEW)
				dimensionIndex = 1;
		}
	}
}